
package com.joysuch.wwyt.dataimport.bean;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class MonitorPointBean {

    private int rowIndex;

    @Excel(name = "监测点名称")
    @NotNull(message = "名称不能为空")
    private String name;

    @Excel(name = "监测点编号")
    @NotNull(message = "监测点编号不能为空")
    @Pattern(regexp = "^[A-Za-z0-9-_*.]+$", message = "监测点编号只支持字符A-Za-z0-9-_*.")
    private String code;

    @Excel(name = "上级责任部门名称")
    private String responsibleDeptParentName;

    @Excel(name = "责任部门名称")
    private String responsibleDeptName;

    @Excel(name = "监测类型")
    @NotNull(message = "监测类型不能为空")
    @Length(max = 20, message = "监测类型长度不超过{max}字符")
    private String type;

    @Excel(name = "地图独立显示")
    private String category;

    /*@Excel(name = "数值单位")
    @NotNull(message = "数值单位不能为空")
    private String unit;*/

    @Excel(name = "量程上限")
    private String highValue;

    @Excel(name = "量程下限")
    private String lowValue;

    @Excel(name = "一级报警阈值(高位限)")
    private String level1a;

    @Excel(name = "一级报警阈值(低位限)")
    private String level1b;

    @Excel(name = "二级报警阈值(高高位限)")
    private String level2a;

    @Excel(name = "二级报警阈值(低低位限)")
    private String level2b;

}
